package com.bg.print.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 订单明细
 *
 * @author liuxvru
 * @email liuxvru@163.com
 * @date 2024-03-25 17:50:46
 */
@Data
@TableName("t_order_details")
public class OrderDetailsEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "id")
    private Long id;
    /**
     * 订单id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "订单id")
    private Long orderId;
    /**
     * 耗材id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "耗材id")
    private Long materialId;
    /**
     * 打印数量
     */
    @Schema(description = "打印数量")
    private Integer quantity;
    /**
     * 模型id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "模型id")
    private Long fileId;

    /**
     * 删除(1删除，0启用)
     */
    @Schema(description = "删除(1删除，0启用)")
    private Integer enabled;

}
